package week10;

//*******************************************************************
//  MagazineRack.java       Author: Lewis/Loftus
//
//  Driver to exercise the MagazineList collection.
//*******************************************************************

public class MagazineRack
{
    //----------------------------------------------------------------
    //  Creates a MagazineList object, adds several magazines to the
    //  list, then prints it.
    //----------------------------------------------------------------
    public static void main(String[] args)
    {
        MagazineList rack = new MagazineList();

        rack.add(new Magazine("Time"));
        rack.add(new Magazine("Woodworking Today"));
        rack.add(new Magazine("Communications of the ACM"));
        rack.add(new Magazine("House and Garden"));
        rack.add(new Magazine("GQ"));
//        rack.insert(1,new Magazine("HumanBeing"));
        rack.insert(3,new Magazine("HumanBeing"));
//        rack.insert(6,new Magazine("HumanBeing"));
//        rack.delete(1);
//        rack.delete(3);
//        rack.delete(5);
        System.out.println(rack);
        rack.SelectSort();
    }
}
